package com.hd.trans.files.bean;

import android.graphics.Bitmap;

import androidx.annotation.NonNull;

public class Video extends MediaEntity {
    private String resolution = null;// 分辨率
    private Bitmap mBitmap; //缩略图
    private String time; //时长

    public Video(int id, String name, String path, long date, long duration, long size) {
        super(id, name, path, date, duration, size);
    }

    public Video(int id, String path, String name, String resolution, long size, long date,
                 long duration, Bitmap bitmap, String time) {
        super(id, name, path, date, duration, size);
        this.resolution = resolution;
        this.mBitmap = bitmap;
        this.time = time;
    }

    @NonNull
    @Override
    public String toString() {
        return "Video{" +
                "resolution='" + resolution + '\'' +
                ", mBitmap=" + mBitmap +
                ", time='" + time + '\'' +
                '}';
    }

    public Bitmap getBitmap() {
        return mBitmap;
    }

    public Video setBitmap(Bitmap bitmap) {
        mBitmap = bitmap;
        return this;
    }

    public String getTime() {
        return time;
    }

    public Video setTime(String time) {
        this.time = time;
        return this;
    }
}

